<!-- Botões -->
<div class="row-fluid">
    <div class="span2 action-btn round-all">
        <a href="<?php echo $this->url('sisesporte-admin', array('controller' => 'professor', 'action' => 'new')) ?>" title="Novo">
            <div><i class="icon-th-list"></i></div>
            <div><strong>Novo</strong></div>
        </a>
    </div>
</div>
<!-- Fim Botões -->

<div class="row-fluid">
    <div class="span12 column" id="col0">
        <div class="box">
            <h4 class="box-header round-top">Relatorio de Professores</h4>
            <div class="box-container-toggle">
                <div class="box-content">
                    <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered bootstrap-datatable" id="datatable">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Nome</th>
                                <th>Matrícula</th>
                                <th>Especialidade</th>
                                <th>CREF</th>
                                <th>status</th>
                                <th>Ações</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            foreach ($this->data as $entity):
                                ?>
                                <tr>
                                    <td class="center"><?php echo $entity->getSqPessoa()->getSqPessoa(); ?></td>
                                    <td class="center"><?php echo $entity->getSqPessoa(); ?></td>
                                    <td class="center"><?php echo $entity->getCoMatricula(); ?></td>
                                    <td class="center"><?php echo $entity->getDeEspecialidade(); ?></td>
                                    <td class="center"><?php echo $entity->getNoCref(); ?></td>
                                    <td class="center">
                                        <span class="badge <?php echo ($entity->getStAtivo() == 1) ? "badge-success" : "" ?>">
                                            <?php echo ($entity->getStAtivo() == 1) ? "Ativo" : "Inativo"; ?>
                                        </span>
                                    </td>
                                    <td class="center">
                                        <a class="btn btn-info" href="<?php echo $this->url('sisesporte-admin-interna', array('controller' => 'professor', 'action' => 'edit', 'id' => $entity->getSqPessoa()->getSqPessoa()));
                                        ?>">
                                            <i class="icon-edit icon-white"></i>
                                            Editar
                                        </a>
                                        <a class="btn btn-primary" href="<?php echo $this->url('sisesporte-admin-interna', array('controller' => 'professor', 'action' => 'view', 'id' => $entity->getSqPessoa()->getSqPessoa()));
                                        ?>">
                                            <i class="icon-plus icon-white"></i>
                                            Ver Mais
                                        </a>
<!--                                        <a class="btn btn-danger" href="<?php // echo $this->url('sisesporte-admin-interna', array('controller' => 'professor', 'action' => 'delete', 'id' => $entity->getSqPessoa()->getSqPessoa()));
                                        ?>">
                                            <i class="icon-trash icon-white"></i>
                                            Deletar
                                        </a>-->
                                    </td>
                                </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

</form>

<?php
echo $this->form()->closeTag();
?>